Fully Qualified Name: | Laminas\Cache\PatternPluginManager\PatternPluginManagerTrait |
Trait providing common logic between FormElementManager implementations.
Trait does not define properties, as the properties common between the two versions are originally defined in their parent class, causing a resolution conflict.
Name | Description | Defined By |
---|---|---|
build() | Override build to inject options as PatternOptions instance. | PatternPluginManagerTrait |
validate() | Validate the plugin is of the expected type (v3). | PatternPluginManagerTrait |
validatePlugin() | Validate the plugin is of the expected type (v2). | PatternPluginManagerTrait |
Override build to inject options as PatternOptions instance.
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$plugin | ||
$options |
Returns:
Validate the plugin is of the expected type (v3).
Validates against $instanceOf
.
Parameter Name | Type | Description |
---|---|---|
$instance | mixed |
Returns:
Validate the plugin is of the expected type (v2).
Proxies to validate()
.
Parameter Name | Type | Description |
---|---|---|
$plugin | mixed |
Returns: